package com.alibaba.cola.core.command;

import com.alibaba.cola.core.dto.Command;
import com.alibaba.cola.core.dto.Response;

/**
 * CommandBus
 *
 * @author fulan.zjf 2017年10月21日 下午11:00:58
 */
public interface CommandBusI {

    /**
     * Send command to CommandBus, then the command will be executed by CommandExecutor
     *
     * @param cmd
     * @return
     */
    Response send(Command cmd);
}
